package com.ctshk.rpc.bus.service.impl;

import java.util.Set;

import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ctshk.common.service.support.BaseService;
import com.ctshk.rpc.bus.entity.BusProductSeat;
import com.ctshk.rpc.bus.mapper.BusProductSeatMapper;
import com.ctshk.rpc.bus.service.IBusProductSeatService;

/**
 * <p>
 * 巴士产品座位表 服务实现类
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-02-08
 */
@DubboService
public class BusProductSeatServiceImpl extends ServiceImpl<BusProductSeatMapper, BusProductSeat> implements IBusProductSeatService, BaseService {
	
	@Autowired
	BusProductSeatMapper busProductSeatMapper;

	/**
	 * 根据产品ID查询座位号列表
	 * @param productId
	 * @return
	 */
	@Override
	public Set<String> querySeatListByProduct(Long productId) {
		validateNotNull(productId);
		return busProductSeatMapper.querySeatListByProduct(productId);
	}

}
